//
//  UserManager.m
//  mUBB
//
//  Created by Cosmin Stirbu on 2/24/13.
//  Copyright (c) 2013 Cosmin Stirbu. All rights reserved.
//

#import "UserManager.h"
#import "WSManager+User.h"

@implementation UserManager

// Singleton
+ (UserManager *)instance
{
    static UserManager *instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[UserManager alloc] init];
        // Do any other initialisation stuff here
    });
    return instance;
}

- (id)init {
    self = [super init];
    return self;
}


- (Ticket *)signInUserEmail:(NSString *)email withPassword:(NSString *)password userType:(UserType)userType delegate:(id<UserProtocol>)delegate {
    return [[WSManager instance] signInUserEmail:email withPassword:password userType:userType delegate:delegate];
}

@end
